package com.mszlu.blog.controller;

import com.mszlu.blog.service.LoginService;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.param.LoginParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * User: SJP
 * Date: 2022/2/27
 * Time: 14:54
 *
 * @author sjp
 * Description: No Description
 */
@RestController
@RequestMapping("logout")
public class LoginOutController {
    @Resource
    private LoginService loginservice;
    @GetMapping
    public Result login(@RequestHeader("Authorization") String token){
        return loginservice.logout(token);
    }
}
